﻿namespace MobileTrack.Web.ViewModels
{
    using System.ComponentModel.DataAnnotations;
    using System.Web.Mvc;

    public class UserViewModel
    {
        [Required(ErrorMessage = "El nombre de usuario es requerido.")]
        [Display(Name = "Nombre de usuario")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "El e-mail es requerido.")]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "E-mail")]
        public string Email { get; set; }
        
        [Required(ErrorMessage = "El rol de usuario es requerido.")]
        [Display(Name = "Rol")]
        public string Role { get; set; }

        [Required(ErrorMessage = "La sucursal del usuario es requerida.")]
        [Display(Name = "Sucursal")]
        public string Sucursal { get; set; }
    }
}